<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>1.事件的基本使用</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h2>11111{{name}}</h2>
        <button @click="showInfo(66,$event)">你好</button>
    </div>
</body>
    <script>
        new Vue({
            el:'#root',
            data:{
                name:'百度',
            },
            methods:{
                showInfo(number,event){
                    console.log((number, event));
                    alert("2222")
                }
            }
        })
    </script>
</html>